package com.kedacom.freedomLabel.model.db.dao;

import android.arch.persistence.room.Update;

import java.util.List;

/**
 * @author licheng
 * @since 2019/11/15 14:40
 */
public interface IDao<T> {

    int count();

    @Update
    void update(T data);

    long save(T data);

    long[] save(List<T> data);

    List<T> get();

    List<T> get(String param);

    List<T> get(String param1, String param2);

    void delete(T data);

    void delete();

    void delete(String param);

}